package com.czm.art_light.param.request;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NonNull;
import org.checkerframework.checker.units.qual.Length;

import java.io.Serial;
import java.io.Serializable;

/**
 * 用户 请求DTO
 */
@Schema(description = "用户 请求DTO")
@EqualsAndHashCode(callSuper = false)
@Data
public class ArtUserReqDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @Schema(description = "用户id")
    private Integer id;

    /**
     * 用户昵称
     */
    @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "用户昵称不能为空")
    private String nickName;

    /**
     * 用户的头像URL
     */
    @Schema(description = "用户的头像URL", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "用户的头像URL不能为空")
    private String avatarUrl;
}
